<?php
namespace Home\Controller;
use Think\Controller;
class CommonController extends Controller{
    public function _initialize()
    {
        if(!$_SESSION['admin']){
            $this->redirect('Login/index');
        }
    }

}